package request

type CreateChatroomRequest struct {
	RecipientCustomerId string `binding:"required" json:"recipientCustomerId,omitempty"  example:"test123,sadsadas"` //消息接收方 userid1,userid2
	Type                string `binding:"required" json:"type"`                                                      //1.私聊 2.群聊
}
type SendMessageRequest struct {
	RoomId  string `binding:"required"json:"roomId"` //房间号唯一
	Type    string `binding:"required"json:"type"`
	Content string `binding:"required"json:"content"`
}
type ReadMessageRequest struct {
	RoomId string `binding:"required"json:"roomId"` //房间号唯一
}

// AddCommunicationFriendRequest  添加好友请求
type AddCommunicationFriendRequest struct {
	FriendCustomerId string `binding:"required"json:"friendCustomerId,omitempty"` //好友ID
	RemarkFriendName string `json:"remarkFriendName,omitempty"`                   //好友昵称 默认对方用户名
	FriendType       string `json:"friendType,omitempty"`                         //关系类型 仅聊天
	Source           string `binding:"required"json:"source,omitempty"`           //添加好友方式 扫码/推荐名片
}
type AddFriendRequest struct {
	MessageId        string `binding:"required"json:"messageId,omitempty"` //消息Id
	Status           string `binding:"required"json:"status,omitempty"`
	RemarkFriendName string `json:"remarkFriendName,omitempty"`         //好友昵称 默认对方用户名
	FriendType       string `json:"friendType,omitempty"`               //关系类型 仅聊天
	Source           string `binding:"required"json:"source,omitempty"` //添加好友方式 扫码/推荐名片
}
type UpdateFriendInfoRequest struct {
	FriendCustomerId string `binding:"required"json:"friendcustomerid,omitempty"` //好友ID
	Status           string `json:"status,omitempty"`
	RemarkFriendName string `json:"remarkfriendname,omitempty"` //好友昵称 默认对方用户名
	FriendType       string `json:"friendtype,omitempty"`       //关系类型 仅聊天
	Order            int    `json:"order,omitempty"`            //排序
}
type UpdateBasisRoomInfoRequest struct {
	RoomId        string `binding:"required"json:"roomid,omitempty"` //房间唯一编号
	BackgroundImg string `json:"backgroundimg,omitempty"`            //聊天背景
	Nickname      string `json:"nickname,omitempty"`                 //用户昵称【群聊】
	RoomName      string `json:"roomname,omitempty"`                 //房间名称【对于用户备注/私聊是对方的用户名，群里是用户名拼接】
	Status        string `json:"status,omitempty"`                   //房间状态Y/N
}
